import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// vant3 UI组件
import Vant from 'vant'
import 'vant/lib/index.css'

// lib-flexible
import 'amfe-flexible'
import 'amfe-flexible/index.js'

import * as vConsole from 'vconsole'

const app = createApp(App) // 创建实例
app.config.globalProperties.deviceData = { name: 'init' }

// Vconsole方便在手机端查看日志

new vConsole()

app.use(router)
app.use(Vant)
app.mount('#app')
